﻿using SaaS.Model.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using XCore.Domain.Dto;
using XCore.Domain.Entities;

namespace SaaS.Model.Dto.Blogs
{
    public class ArticleInput : IEntityInput<int>
    {
        public int? Id { get; set; }
        [StringLength(128, ErrorMessage = "标题长度不能超过128个字符")]
        [Required]
        public string Title { get; set; }
        [Required]
        public string Content { get; set; }
        public ArticleStatus Status { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string[] Tags { get; set; }
    }
}
